using System;
using Microsoft.SPOT;

namespace Netduino4Fun.Framework.Log
{
    public class BlockLog : IDisposable
    {
        private Log log;

        public BlockLog(Log log, string message)
        {
            this.log = log;
            this.log.Write(message);
            this.log.Indentation++;
        }

        public void Dispose()
        {
            this.log.Indentation--;
        }
    }
}
